package com.aqielife.demo.service;

import com.aqielife.demo.entity.Know;
import com.aqielife.demo.entity.UserNode;

import java.util.List;
import java.util.Optional;

/**
 * @author aqie
 * @date 2022/02/05 21:48
 * @desc
 */
public interface UserService {
  UserNode create(UserNode userNode);

  void deleteById(Long id);

  Optional<UserNode> findById(long id);

  List<UserNode> findAll();

  Know addIKnows(UserNode fromNode, UserNode toNode);

  UserNode updateByNode(UserNode userNode);

  void deleteKnowByNodeId(long fromId,long toId);
}
